package com.doit.day06

object _01_隐式类 {
  def main(args: Array[String]): Unit = {

    val ant: Ant = new Ant
    ant.eatElephant()
    10.eatElephant()

  }

  implicit class Snack(ant:Any){
    def eatElephant(): Unit ={
      println("我能吃大象")
    }
  }
}


class Ant(){

}